with open('score.csv', "r", encoding='utf-8') as file:
    LS = list(file)
    del LS[0]
ls1, ls2, ls3 = [], [], []
for s in LS:
    x = s[:-1].split(',')
    ls1.append(int(x[1]))
    ls2.append(int(x[2]))
    ls3.append(int(x[3]))
print('程序设计课程平均成绩：{:.2f},最高分{},最低分{}'.format(sum(ls1) / len(ls1), max(ls1), min(ls1)))
print('细胞生物课程平均成绩：{:.2f},最高分{},最低分{}'.format(sum(ls2) / len(ls2), max(ls2), min(ls2)))
print('生理学课程平均成绩：{:.2f},最高分{},最低分{}'.format(sum(ls3) / len(ls3), max(ls3), min(ls3)))